import json

file = open("C:\\Users\\Administrator\\Desktop\\期中测试\\天气预报json.txt", "r", encoding="utf-8")

dict = json.load(file)
print(dict["result"]["city"], "未来三天的气温和天气")
for i in range(3):
    print("第", i + 1, "天的气温：", dict["result"]["future"][i]["temperature"], "天气状况：",
          dict["result"]["future"][i]["weather"])
